/*
 * Copyright (c) chb my copyright message. 2022-2023. All rights reserved.
 *
 */
import request from '../utils/request'

// 新增歌单
export function getPlayListCreate(name, privacy, type) {
  return request({
    url: 'playlist/create?name=' + name + '&type=' + type + '&privacy' + privacy,
    method: 'get'
  })
}

//删除歌单
export function delPlayList(id) {
  return request({
    url: 'playlist/delete?id=' + id,
    method: 'get'
  })
}

// 歌单分类
export function getPlayListCatlist() {
  return request({
    url: 'playlist/catlist',
    method: 'get'
  })
}

//热门歌单分类
export function getPlayListHot() {
  return request({
    url: 'playlist/hot',
    method: 'get'
  })
}

//歌单(网友精选碟)
export function getTopPlayList(cat) {
  return request({
    url: 'top/playlist?cat=' + cat,
    method: 'get'
  })
}

//获取歌单详情
export function getPlayListDetail(id) {
  return request({
    url: 'playlist/detail?id=' + id,
    method: 'get'
  })
}

// 精品歌单标签列表
export function getPlayListHighqualityTags(cat) {
  return request({
    url: 'playlist/highquality/tags?cat=' + cat,
    method: 'get'
  })
}

// 获取精品歌单
export function getTopPlayListHighqualityTags(cat) {
  return request({
    url: 'top/playlist/highquality/tags?cat=' + cat,
    method: 'get'
  })
}

//歌单详情动态
export function getPlayListDetailDynamic(id) {
  return request({
    url: 'playlist/detail/dynamic?id=' + id,
    method: 'get'
  })
}
